class CreateFriendGroups < ActiveRecord::Migration
  def self.up
    create_table :friend_groups do |t|
      t.string :name
      t.integer :valleyer_id
      t.integer :position
      t.timestamps
    end

    FriendGroup.new(:name => "未分组").save!
  end

  def self.down
    drop_table :friend_groups
  end
end
